package com.bb.flow.service.imp.node.UserLoginFlow;

import com.bb.flow.service.imp.node.FlowNodeBase;

import java.util.Date;
import java.util.List;

public class UserLogin extends FlowNodeBase {

    private String userName;
    private String sex;

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    private Date birthday;

    private int age;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    public boolean isAlive() {
        return alive;
    }

    public void setAlive(boolean alive) {
        this.alive = alive;
    }

    public List<String> getAddress() {
        return address;
    }

    public void setAddress(List<String> address) {
        this.address = address;
    }

    private List<String> address;


    private boolean alive;

    @Override
    public void execute() {
        //        System.out.println("系统打开登录界面");
        //        try {
        //            Thread.sleep(1 * 1000);
        //        } catch (InterruptedException e) {
        //            e.printStackTrace();
        //        }
        //        System.out.println("userName=" + userName);
        //        System.out.println("sex=" + sex);
        //        System.out.println("用户输入登录名");
        //        System.out.println("birthday==" + birthday);
        //        System.out.println("age=" + this.age);
        //        System.out.println("alive=" + this.alive);
        notifyDriver(false);
    }

    public String getUserName() {
        return userName;
    }

    public UserLogin setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getSex() {
        return sex;
    }

    public UserLogin setSex(String sex) {
        this.sex = sex;
        return this;
    }
}
